﻿using System;
using System.Runtime.InteropServices;

namespace WirelessAccessPoint.InteropServices
{
    /// <summary>
    /// The MIB_IPNETTABLE structure contains a table of Address Resolution
    /// Protocol (ARP) entries for IPv4 addresses.
    /// </summary>
    [StructLayout(LayoutKind.Sequential)]
    public struct MIB_IPNETTABLE
    {
        /// <summary>
        /// The number of ARP entries in the table.
        /// </summary>
        public uint dwNumEntries;

        /// <summary>
        /// A pointer to a table of ARP entries implemented as an array of
        /// MIB_IPNETROW structures.
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]
        public MIB_IPNETROW[] table;
    }
}
